//
//  RootViewController.h
//  Text_ problem
//
//  Created by jiboxue on 13-1-7.
//  Copyright (c) 2013年 jiboxue. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AudioToolbox/AudioToolbox.h>
#import <AVFoundation/AVFoundation.h>

#import "AppDelegate.h"
#import "SetViewController.h"
@class EnvelopeAnimationViewController;
@class LandingViewController;

@interface RootViewController : UIViewController<AVAudioPlayerDelegate,UIImagePickerControllerDelegate,UINavigationControllerDelegate,
UIActionSheetDelegate,SetViewControllerDelegate>
{
    //有电脑的图片
    UIImageView *imageView_table;
    //桌面相框里面的image
    UIImageView *image_photo;
    //眼睛,灯,闹铃的image
    UIImageView *image_clock;
    UIImageView *image_eye;
    UIImageView *image_light;
    //灯的播放动画按钮
    UIButton *button_light_clockwise;
    UIButton *button_light_anticlockwise;
    //换背景的按钮
    UIButton *button_background_green;
    UIButton *button_background_white;
    UIButton *button_background_pink;
    //花的动画
    UIImageView *image_flower;
    //这是一个单利
    AppDelegate *appD;
    //金钱的那个图层
    UIView *view_money;
    //设置的那个深色图层
    UIView *view_set;
    //    //这个要做预在效果
    //    NSMutableArray *openLightArray;
    //保存x坐标
    CGFloat rootVC_x;
    //信息按钮
    //    UIButton *button_information;
    //显示屏里面的信息image
    UIImageView *imageView_table_message;
    UIImageView *imageView_table_message1;
    //定时器信封闪烁
    NSTimer *showTimer;
    //光
    UIImageView *guang_img_view;
    //按钮
    UIButton *button_clock;
    UIButton *button_eye;
    
    UIImagePickerController *m_imagePicker;
    UIPopoverController *popover;
    
    
    NSString *soundFile;
    
}
@property(nonatomic,retain)AVAudioPlayer *audioPlayer;
@property (nonatomic, retain) UIButton *button_information;

- (IBAction)buttonPress:(id)sender;
//那个大圆
@property (retain, nonatomic) IBOutlet UIImageView *background;
//有电脑的那一层
@property (nonatomic, retain) UIImageView *imageView_back;
//前往商店
@property (retain, nonatomic) IBOutlet UIButton *button_shop;
//金钱按钮
@property (retain, nonatomic) IBOutlet UIButton *button_money;
//设置按钮
@property (retain, nonatomic) IBOutlet UIButton *button_set;
//左上角的图片
@property (retain, nonatomic) IBOutlet UIImageView *imageViewleftCorner;
//登陆的view
@property (nonatomic, retain) LandingViewController *landingVC;

//设置里面的view
@property (nonatomic, retain) SetViewController *setVC;
//这个ipad照相机要用
@property (nonatomic, retain) UIPopoverController *popoverController;
//对勾的图片要传递用
@property (nonatomic, retain) UIImageView *image_background_ok;
//个人头像也要传递
@property (nonatomic, retain) UIImageView *image_head;
//人的名字这个可换
@property (retain, nonatomic) IBOutlet UILabel *label_name;
//有多少钱
@property (nonatomic, retain) UILabel *label_assets;
//信封的动画
@property (nonatomic, retain) EnvelopeAnimationViewController *EnvelopeAnimationVC;
@property (nonatomic, retain) UIView *view_message;
@property (nonatomic, retain) UIImageView *imageView_image;
@property (nonatomic, retain) UIImageView *imageView_message_overtime;

////数据
@property (nonatomic,retain) NSString *str_avatar;
@property (nonatomic,retain) NSString *str_nickname;
//问题
@property (nonatomic, retain) NSArray *str_question_list;
@property (nonatomic, retain) NSString *str_latest_one_id;
@property (nonatomic, retain) NSString *str_latest_two_id;
@property (nonatomic, retain) NSString *str_latest_one;
@property (nonatomic, retain) NSString *str_latest_two;

//@property (nonatomic, retain) NSString *str_nickname;
@property (nonatomic, retain) NSString *str_realname;

////存动画
//@property (nonatomic,retain) NSMutableArray *ary_eye;
//电脑屏幕内的白色
@property (nonatomic, retain) UIView *view_white;
@property (nonatomic, retain) UIImageView *imageView_InScreen;

@property (nonatomic, retain) UILabel *label_InScreen_name;
@property (nonatomic, retain) UILabel *label_inScreen_score;
@property (nonatomic, retain) UILabel *label_inScreen_hour;



- (void)showLandingViewController;

- (void)playSound:(NSString*)soundKey;

- (void)showLandingWifi;
- (void)closeLandingWifi;
- (void)closeAll;
- (void)addLandingViewController;

-(void)removeview;

@property (nonatomic, retain) NSDictionary *question1;
@property (nonatomic, retain) NSDictionary *question2;

@property (nonatomic, retain) NSDictionary *dic_data;

@property (nonatomic, retain) NSMutableArray *questionList;

//信息数
@property (nonatomic, retain) UILabel *labelImageMessageNumber;

//@property(nonatomic,retain)UIAlertView *alertView;

@property (nonatomic, retain) UIView *viewLanding;
//风火轮
@property (nonatomic,retain) UIActivityIndicatorView *activity;
-(void)timerinvalidate;
@end
